package com.hxzy.controller.admin.dicttype.resp;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxzy.common.annon.DictTypeAnnon;
import com.hxzy.common.enums.DictTypeEnum;
import com.hxzy.util.easyexcel.convert.DictTypeConvert;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @Desc 描述
 * @Author: admin
 * @Date: 2023/07/03/14:45
 */
@Getter
@Setter
@ToString
@ExcelIgnoreUnannotated
public class DictTypeResp {

    @ExcelProperty(value = "编号")
    private Long id;

    /**
     * 字典名称
     */
    @ExcelProperty(value = "字典名称")
    private String dictName;

    /**
     * 字典类型
     */
    @ExcelProperty(value = "字典类型")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @DictTypeAnnon(value = DictTypeEnum.sys_normal_disable)
    @ExcelProperty(value = "状态", converter = DictTypeConvert.class)
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ExcelProperty(value = "备注")
    private String remark;
}
